package com.cy.shiro.controller;

import com.cy.shiro.pojo.User;
import com.cy.shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

    @Autowired
    private UserService userService;

    @RequestMapping("/hello")
    public String hello(){

        User user = userService.findByName("test1");
        System.out.println(user);

        return "hello";
    }
}
